<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>医学研究登记备案信息系统</title>
<meta http-equiv=X-UA-Compatible content=IE=EmulateIE7 />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="/js/common.js"></script>
<%@ include file="/commons/meta.jsp"%>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<script type="text/javascript" src="/scripts/jquery.md5.js"></script>
<link href="/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/scripts/Validform_v5.3.2_min.js"></script>
<script>
var info = '<%=request.getAttribute("info")%>';
if(info!=null && info!='' && info!='null') {
	alert(info);
}
function submitForm() {
	var kedaoForm = $(".kedaoForm").Validform({
		tiptype: 3,
		beforeSubmit:function(curform){
			//在验证成功后，表单提交前执行的函数，curform参数是当前表单对象。
			//这里明确return false的话表单将不会提交;
			$("#ypassword").val($.md5($("#ypassword").val()));	
			$("#password").val($.md5($("#password").val()));	
			$("#confirmpwd").val($.md5($("#confirmpwd").val()));	
		}
	});
	kedaoForm.check();
	kedaoForm.submitForm(false);
}
</script>
</head>
<body>
	<div id="MainContainer">
	
		<jsp:include page="/index/project_top.jsp" />		
		<div id="wrap">	
		<div style="margin-top: 20px; margin-left: 20px; color: #666; font-size: 12px;">当前位置：医学研究项目备案&gt;&gt; 更新个人信息</div>
		    <form name="kedaoForm" id="kedaoForm" class="kedaoForm" action="/admin/user!updataPersonageInfo.action" method="post">
			<!-- 添加或更新用户  -->
			<div id="reg1" class="reg_form">	
				<input type="hidden" id="id" name="id" value="">
				<ul>
					<li class="name">用户名：</li>
					<li class="inpu">
						${user.username }
					</li>
					<li></li>
				</ul>
				<ul>
					<li class="name">姓名：
					</li>
					<li class="inpu">
						${user.name }
					</li>
					<li></li>
				</ul>
				<ul>
					<li class="name">原密码：</li>
					<li class="inpu">
					<input type="password" id="ypassword" name="ypassword" class="texboxReg" datatype="*"/>
					</li>
					<li><span class="Validform_checktip spanTip note">（必填 ）</span></li>
				</ul>
				<ul>
					<li class="name">输入新密码：</li>
					<li class="inpu">
					<input type="password" id="password" name="password" class="texboxReg" datatype="*"/>
					</li>
					<li><span class="Validform_checktip spanTip note">（必填 ）</span></li>
				</ul>
				<ul>
				   <li class="name">确认新密码：</li>
					<li class="inpu">
						<input type="password" id="confirmpwd" name="confirmpwd" class="texboxReg" datatype="*" recheck="password"/>
					</li>
					<li><span class="Validform_checktip spanTip note">（必填 ）</span></li>
				 </ul>
			</div>
			
			<div class="reg_form">
				<ul>
					<li class="name">&nbsp;</li>
					<li class="inpu">
					<button onclick="submitForm();" class="btn" style="width: 150px;">保 存 Save</button>
					</li>
				</ul>
			</div>
			</form>
		</div>
		
		<jsp:include page="/index/footer.jsp"></jsp:include>		
	</div>
</body>
</html>